package com.hzit.controller;

import com.hzit.entity.User;

public class TestAction {
	private String name;
	private User user;
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	
	public String getHaha(){
		return "haha";
	}
	
	
	public String test(){
		User user1=new User(1,"zhangsan",12);
		user=user1;
		return "success";
	}
	
	
	
	
	
	
	
	public String login(){
		System.out.println("login");
		return "ok";
	}
	public String reg(){
		System.out.println("reg");
		return "success";
	}
	public String logout(){
		System.out.println("logout");
		return "ok";
	}
}
